//上传金山云
export function successFile(params) {
  return $http({
    url: '/api/base/login/_get_success_file',
    method: 'get',
    params
  })
}
//获取网站的基本信息
export function getConfig(params) {
  return $http({
    url: '/api/index/index/get_config',
    method: 'get',
    params
  })
}
// 登录
export function navPost(params) {
  return $http({
    url: '/api/index/home/login',
    method: 'post',
    data: params
  })
}
//注册
export function regUser(params) {
  return $http({
    url: '/api/index/home/register',
    method: 'post',
    data: params
  })
}
//忘记密码
export function forgetPass(params) {
  return $http({
    url: '/api/index/home/forget_password',
    method: 'post',
    data:params
  })
}
//完善个人信息
export function personMessage(params) {
  return $http({
    url: '/api/index/home/perfect_message',
    method: 'post',
    data:params
  })
}
//获取地区
export function getCity(params) {
  return $http({
    url: '/api/base/not_login/get_city',
    method: 'get',
    params
  })
}
//获取验证码--图形
export function getImg(params) {
  return $http({
    url: '/api/base/not_login/captcha',
    method: 'get',
    params
  })
}
//获取验证码--手机
export function getMobile(params) {
  return $http({
    url: '/api/base/not_login/send_mobile_code',
    method: 'post',
    data:params
  })
}
//首页
// 获取首页banner
export function setBanner(params) {
  return $http({
    url: '/api/index/index/get_banner',
    method: 'get',
    params
  })
}
//点击banner记录
export function clickBanner(params) {
  return $http({
    url: '/api/index/index/click_banner',
    method: 'post',
    data:params
  })
}
// 推荐课程
export function reCourse(params) {
  return $http({
    url: '/api/index/index/recommend_course',
    method: 'get',
    params
  })
}
//学员动态
export function userDynamic(params) {
  return $http({
    url: '/api/index/index/user_dynamic',
    method: 'get',
    params
  })
}
//课程详情
export function courseDetail(params) {
  return $http({
    url: '/api/index/index/index_course_detail',
    method: 'get',
    params
  })
}
//课程评价
export function coursEeval(params) {
  return $http({
    url: '/api/index/index/index_course_evaluation',
    method: 'get',
    params
  })
}
//单个课程详情中 的 课程推荐
export function singleRecommend(params) {
  return $http({
    url: '/api/index/index/index_course_single_recommend',
    method: 'get',
    params
  })
}
//推荐课程
export function recommendCourse(params) {
  return $http({
    url: '/api/index/index/recommend_course',
    method: 'get',
    params
  })
}
//购买---支付
export function buyCourse(params) {
  return $http({
    url: '/api/index/course/buy_course',
    method: 'post',
    data:params
  })
}
//保存报名条件
export function saveCond(params) {
  return $http({
    url: '/api/index/course/save_conditions',
    method: 'post',
    data:params
  })
}
//课程学习
//课程分类插件
export function typeList(params) {
  return $http({
    url: '/api/base/not_login/_type_list',
    method: 'get',
    params
  })
}
//个人中心
//个人资料 --获取个人信息
export function myInfo(params) {
  return $http({
    url: '/api/base/login/_info',
    method: 'get',
    params
  })
}
//我的课程
export function myCourse(params) {
  return $http({
    url: '/api/index/user/my_course',
    method: 'get',
    params
  })
}
//我的证书
export function myCertif(params) {
  return $http({
    url: '/api/index/user/my_certificate',
    method: 'get',
    params
  })
}
//证书详情
export function detaCertif(params) {
  return $http({
    url: '/api/index/user/my_certificate_detail',
    method: 'get',
    params
  })
}
//我的订单
export function myOrder(params) {
  return $http({
    url: '/api/index/user/my_order',
    method: 'get',
    params
  })
}
//取消订单
export function canelOrderAll(params) {
  return $http({
    url: '/api/index/user/cancel_order',
    method: 'post',
    data:params
  })
}
//优惠券
export function myCoupon(params) {
  return $http({
    url: '/api/index/user/my_coupons',
    method: 'get',
    params
  })
}
//领取优惠券
export function recCoupon(params) {
  return $http({
    url: '/api/index/user/receive_coupons',
    method: 'post',
    data:params
  })
}
//修改个人资料
export function updataUser(params) {
  return $http({
    url: '/api/index/user/update_user',
    method: 'post',
    data:params
  })
}
//课程目录汇总   该课程的具体情况
export function courseDire(params) {
  return $http({
    url: '/api/index/course/course_directory',
    method: 'get',
    params
  })
}

//课程目录
export function courseList(params) {
  return $http({
    url: '/api/index/course/course_directory_list',
    method: 'get',
    params
  })
}
//课程目录列表
export function catalogList(params) {
  return $http({
    url: '/api/index/index/index_course_list',
    method: 'get',
    params
  })
}
//课程目录详情
export function courseDirecDetail(params) {
  return $http({
    url: '/api/index/course/course_directory_detail',
    method: 'get',
    params
  })
}
//保存资料下载记录
export function saveDown(params) {
  return $http({
    url: '/api/index/course/save_download_log',
    method: 'post',
    data:params
  })
}
//专题讨论 ---新建讨论
export function publish(params) {
  return $http({
    url: '/api/index/course/publish_discuss',
    method: 'post',
    data:params
  })
}
//讨论回复
export function replyDis(params) {
  return $http({
    url: '/api/index/course/reply_discuss',
    method: 'post',
    data:params
  })
}
//专题讨论 详情
export function talkDetail(params) {
  return $http({
    url: '/api/index/course/discuss_detail',
    method: 'get',
    params
  })
}
//考前答疑
export function courseLive(params) {
  return $http({
    url: '/api/index/course/course_live',
    method: 'get',
    params
  })
}
//课程证书
export function courseCertificate(params) {
  return $http({
    url: '/api/index/course/course_certificate',
    method: 'get',
    params
  })
}
//最终考核详情
export function finallDetail(params) {
  return $http({
    url: '/api/index/course/finally_check_detail',
    method: 'get',
    params
  })
}
// 参加最终考核提醒
export function joinRemind(params) {
  return $http({
    url: '/api/index/course/join_finally_check_remind',
    method: 'get',
    params
  })
}
//最终考核 --答题
export function finallAnswer(params) {
  return $http({
    url: '/api/index/course/finally_answer',
    method: 'get',
    params
  })
}
// 最终考核--答题情况
export function finallRead(params) {
  return $http({
    url: '/api/index/course/read_finally_check',
    method: 'get',
    params
  })
}
//最终考核 ---交卷
export function finallPut(params) {
  return $http({
    url: '/api/index/course/finally_put',
    method: 'post',
    data:params
  })
}
//查看答题情况 --- 最终考核
export function finallCheck(params) {
  return $http({
    url: '/api/index/course/read_finally_check',
    method: 'get',
    params
  })
}
//专题考试/课后练习- 开始
export function startExam(params) {
  return $http({
    url: '/api/index/course/start_special_test',
    method: 'get',
    params
  })
}
//专题考试/课后练习- 结束
export function endExam(params) {
  return $http({
    url: '/api/index/course/end_special_test',
    method: 'post',
    data:params
  })
}
// 查看专题考试/课后练习答题情况
export function readCheck(params) {
  return $http({
    url: '/api/index/course/read_special_check',
    method:'get',
    params
  })
}
// 论文提交状态详情
export function thesisPut(params) {
  return $http({
    url: '/api/index/course/thesis_put_detail',
    method: 'get',
    params
  })
}
//提交论文
export function refeThesis(params) {
  return $http({
    url: '/api/index/course/thesis_put',
    method: 'post',
    data:params
  })
}
//保存微课观看记录
export function saveWechatLog(params) {
  return $http({
    url: '/api/index/course/save_wechat_log',
    method: 'post',
    data:params
  })
}



